package com.example.reebonz_search;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        final EditText username = (EditText) findViewById(R.id.username);
        final EditText password = (EditText) findViewById(R.id.password);
        final Button button1 = (Button) findViewById(R.id.login_button);
        final TextView tUserName = (TextView) findViewById(R.id.view_username);
        final TextView tPassword = (TextView) findViewById(R.id.view_password);
       
        button1.setOnClickListener(new View.OnClickListener() {
        		public void onClick (View v) {
        			tUserName.setText(username.getText().toString());
        			tPassword.setText(password.getText().toString());
        		}
        	}
        );
    }



    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
    
}
